-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor form component #27025
Refactor form component #27025
Conversation
d8a81a7
to
b6c8a62
Compare
@thesahindia Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Co-authored-by: Carlos Martins <luacmartins@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Thanks for the changes. Just one comment left from my end.
@thesahindia could you please check the PR as well? |
db20f09
to
ce80fef
Compare
Tested well! But it looks like we still have one console error. Screen.Recording.2023-09-22.at.3.26.34.AM.mov |
@luacmartins @thesahindia FIY: from Monday I will be OOO for a week, so if we won't finish today we will need to wait one more week. |
@kowczarz did you get a chance to look at the console error @thesahindia pointed out here |
@thesahindia that's not connecteed with my PR. The root of the problem is in our fork of |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-09-16.at.2.29.47.AM.movMobile Web - ChromeScreen.Recording.2023-09-22.at.11.11.27.PM.movMobile Web - SafariScreen.Recording.2023-09-22.at.3.24.29.AM.movDesktopScreen.Recording.2023-09-22.at.11.07.42.PM.moviOSScreen.Recording.2023-09-22.at.3.24.29.AM.movAndroidScreen.Recording.2023-09-22.at.11.09.14.PM.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for working on this!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.74-0 🚀
|
<InputWrapper | ||
InputComponent={TextInput} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works. But wouldn't it prevent prop intellisense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As soon as we will introduce TypeScript (migration is in progress) it certainly won't be a problem, because we can create a simple generic that will handle the props properly.
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|
{...rest} | ||
onSubmit={submit} | ||
inputRefs={inputRefs} | ||
errors={errors} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We forgot to pass a prop enabledWhenOffline
which caused #28148
containerStyles={[styles.mh0, styles.mt5, styles.flex1]} | ||
enabledWhenOffline={enabledWhenOffline} | ||
isSubmitActionDangerous={isSubmitActionDangerous} | ||
disablePressOnEnter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kowczarz @thesahindia Is there any reason for using disablePressOnEnter
here? Does this fix any bug?
Details
Fixed Issues
$ #25397
PROPOSAL: #25397 (comment)
Tests
;
causes errorsOffline tests
;
causes errorsQA Steps
;
causes errorsPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
android.web.mov
Mobile Web - Safari
ios.web.mp4
Desktop
desktop.mov
iOS
ios.native.mp4
Android
android.native.mov